libotutil: Add API to create directory hierarchy recursively *and* fsync
authorColin Walters <walters@verbum.org>
Tue, 8 Apr 2014 21:22:38 +0000 (17:22 -0400)
committerColin Walters <walters@verbum.org>
Fri, 11 Apr 2014 22:43:13 +0000 (18:43 -0400)
commitb19aea441abf82dab90ee29818ffa55a660b2e6d
treeb651c61ff44b082fb9b0c4dee4aac49f9983eb7d
parentd27c78eab5353286b272fc4375d1fc71f1edd7b5
libotutil: Add API to create directory hierarchy recursively *and* fsync

To be really sure that any directory entries have hit disk we need to
call fsync() on the directory fd.  This API allows us to conveniently
create a directory hierarchy, fsyncing all of it along the way.
src/libotutil/ot-gio-utils.c
src/libotutil/ot-gio-utils.h